package com.nuanshui.heatedloan.middleware.mongodb;

import org.springframework.core.convert.converter.Converter;

import java.util.Date;

public class DateToLongConverter implements Converter<Date, Long> {
    public DateToLongConverter() {
    }

    public Long convert(Date source) {
        return source.getTime();
    }
}
